package com.ericsson.enap.modules.ebmLog.entity.vgc.amf;

import com.ericsson.enap.modules.ebmLog.entity.vgc.Dimension;
import lombok.Data;

import java.util.Objects;

/**
 * @description:
 * @author: wangjingshi
 * @create: 2021-11-17 16:06
 */
@Data
public class ServiceRequest extends Dimension {

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ServiceRequest t = (ServiceRequest) o;
        return cause_code.equals(t.cause_code) && sub_cause_code.equals(t.sub_cause_code) &&
                dnn.equals(t.dnn) && service_request_type.equals(t.service_request_type) &&
                service_request_trigger.equals(t.service_request_trigger) && k_key.equals(t.k_key);
    }


    @Override
    public int hashCode() {
        return Objects.hash(cause_code,sub_cause_code,dnn,service_request_type,service_request_trigger,k_key);
    }

}
